#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
'''
@author: yuejl
@application:
@contact: lewyuejian@163.com
@file: f_book_login.py
@time: 2021/11/21 0021 16:52
@desc:
'''
from integratior_service.connector.base.httpclient import HttpClient
from integratior_service.connector.base.api_f_book_load_conf import FBookLoadConf

class F_BookVisitClient(object):
    __instance = None
    __inited = None

    def __new__(cls, *args, **kwargs):
        if cls.__instance is None:
            cls.__instance = object.__new__(cls)
        return cls.__instance

    def __init__(self):
        if self.__inited is None:
            self.f_bookConf = FBookLoadConf().conf
            self.f_bookRequest = HttpClient(self.f_bookConf.url)

            self.__inited = True